<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user/findAll" method="get">
    姓名:<input type="text" name="name">
    年龄:<input type="number" name="age">
    <input type="radio" name="zt" value="0">未删除
    <input type="radio" name="zt" value="1">已删除
    <input type="submit" value="搜索">
    <table border="1">
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
            <td>手机号</td>
            <td>地址</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${list.records}">
            <td th:text="${user.getId()}"></td>
            <td th:text="${user.getName()}"></td>
            <td th:text="${user.getAge()}"></td>
            <td th:text="${user.getSex()}"></td>
            <td th:text="${user.getSjh()}"></td>
            <td th:text="${user.getDz()}"></td>
            <td th:text="${user.getZt()}"></td>
            <td>
                <a th:href="@{/user/del(id=${user.getId()})}">删除</a>
            </td>
        </tr>
    </table>
</form>
<a href="/user/findAll?current=1">首页</a>
<a th:href="@{/user/findAll(current=${list.current-1})}">上页</a>
<a th:href="@{/user/findAll(current=${list.current+1})}">下页</a>
<a th:href="@{/user/findAll(current=${list.pages})}">尾页</a>
共<span th:text="${list.total}"></span>条数据
</body>
</html>